.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.captcha-image {
  width: 120px;
  height: 40px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  letter-spacing: 2px;
  color: #333;
  user-select: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.captcha-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.captcha-image:hover::before {
  transform: translateX(100%);
}

.captcha-image.refreshing {
  opacity: 0.7;
  transform: scale(0.95);
}

.captcha-refresh {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.captcha-refresh:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(180deg);
}

.captcha-input {
  flex: 1;
  max-width: 120px;
}

@media (max-width: 480px) {
  .captcha-container {
    flex-wrap: wrap;
  }
  
  .captcha-image {
    width: 100px;
    height: 35px;
  }
  
  .captcha-input {
    max-width: 100px;
  }
}